package org.xilin

import org.xilin.User

/**
 * Authority domain class.
 */
class Role {

	static hasMany = [people: User]

	/** description */
	String description
	/** ROLE String */
	String authority = 'ROLE_STUDENT'

    static String[] authorities = ['ROLE_ADMIN', 'ROLE_TEACHER', 'ROLE_USER']
    static transients = ['authorities']

	static constraints = {
		authority(blank: false, unique: true)
		description()
	}

}
